<%@LANGUAGE="JAVASCRIPT" CODEPAGE="65001"%>
<!--#include file="Config.asp" -->
<%
	//声明视图数据模型
	var ViewData=
	{
		module:
		{
			news:{}
		},
		common:
		{
			position:'公司新闻',
			newsPaginationCode:'分页代码'
		}
	};
	
	//获取数据
	var NewsRecordset=new MVC.dataSet('Select * From [News] Order By Datetime Desc',{pagesize:5,absolutepage:1});
	
		ViewData.module.news=NewsRecordset.getModule();
		
		ViewData.common.newsPaginationCode=NewsRecordset.pageToolbar();
		
		NewsRecordset.close(),NewsRecordset=null;

	//印刷模板
	var Haa=new HTMLPage({data:ViewData});
		Haa.save('asd.txt',Server.MapPath('/dfsdf/sdf/'));
		Haa.close(),Haa=null;
%>